package com.ruoyi.coal.modules.coalpile.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@TableName("cp_point")
public class PointEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("坐标id")
    private Integer id;

    @ApiModelProperty("x坐标")
    private Double x;

    @ApiModelProperty("y坐标")
    private Double y;

    @ApiModelProperty("z坐标")
    private Double z;

    @ApiModelProperty("平均值")
    private Double zMean;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setX(Double x) {
        this.x = x;
    }

    public void setY(Double y) {
        this.y = y;
    }

    public void setZ(Double z) {
        this.z = z;
    }

    public void setZMean(Double zMean) {
        this.zMean = zMean;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.ruoyi.coal.modules.coalpile.domain.PointEntity))
            return false;
        com.ruoyi.coal.modules.coalpile.domain.PointEntity other = (com.ruoyi.coal.modules.coalpile.domain.PointEntity) o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$x = getX(), other$x = other.getX();
        if ((this$x == null) ? (other$x != null) : !this$x.equals(other$x))
            return false;
        Object this$y = getY(), other$y = other.getY();
        if ((this$y == null) ? (other$y != null) : !this$y.equals(other$y))
            return false;
        Object this$z = getZ(), other$z = other.getZ();
        if ((this$z == null) ? (other$z != null) : !this$z.equals(other$z))
            return false;
        Object this$zMean = getZMean(), other$zMean = other.getZMean();
        return !((this$zMean == null) ? (other$zMean != null) : !this$zMean.equals(other$zMean));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.ruoyi.coal.modules.coalpile.domain.PointEntity;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $x = getX();
        result = result * 59 + (($x == null) ? 43 : $x.hashCode());
        Object $y = getY();
        result = result * 59 + (($y == null) ? 43 : $y.hashCode());
        Object $z = getZ();
        result = result * 59 + (($z == null) ? 43 : $z.hashCode());
        Object $zMean = getZMean();
        return result * 59 + (($zMean == null) ? 43 : $zMean.hashCode());
    }

    public String toString() {
        return "PointEntity(id=" + getId() + ", x=" + getX() + ", y=" + getY() + ", z=" + getZ() + ", zMean=" + getZMean() + ")";
    }

    public Integer getId() {
        return this.id;
    }

    public Double getX() {
        return this.x;
    }

    public Double getY() {
        return this.y;
    }

    public Double getZ() {
        return this.z;
    }

    public Double getZMean() {
        return this.zMean;
    }
}

